package com.vancouver.knows.business.tracker;

import com.pangu.bean.PageableResult;
import com.pangu.task.IResultReceiver;
import com.pangu.task.OperateResult;
import com.pangu.task.mark.ATaskMark;
import com.vancouver.knows.business.BUtils;
import com.vancouver.knows.business.BusinessModule;
import com.vancouver.knows.business.bean.DiscountCategoryInfo;
import com.vancouver.knows.business.bean.DiscountInfo;
import com.vancouver.knows.business.bean.EventBannerInfo;
import com.vancouver.knows.business.service.impl.FetchCityDiscountsHandler;
import com.vancouver.knows.business.task.mark.FetchCityDiscountsTaskMark;

import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * 地图也获取城惠信息
 * 
 * @author chenxunlin01
 * 
 */
public class FetchHomeMapTracker extends ABInvokeTracker {

	public FetchHomeMapTracker(BusinessModule module, IResultReceiver resultReceiver) {
		super(module, resultReceiver);
	}


	@Override
	public String TAG() {
		return FetchHomeMapTracker.class.getSimpleName();
	}

	@Override
	public void handleResult(OperateResult result) {
		List<DiscountInfo> datas = (List<DiscountInfo>) result.getResultData();
		if (datas != null) {
			module.getCacheManager().setMapDisocuntList(datas);
		}
	}
}
